package com.lrkj.property.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.lrkj.common.annotation.Excel;
import com.lrkj.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 车辆管理对象 tm_vehicle
 *
 * @author yajun_ren
 * @date 2021-08-16
 */
public class Vehicle extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 车辆id */
    private String vehicleId;

    /** 项目名称 */
    @Excel(name = "项目名称")
    private String communityId;

    /** 车场id */
    @Excel(name = "车场id")
    private String parkingId;

    /** 车位id */
    @Excel(name = "车位id")
    private String carportId;

    /** 车牌号 */
    @Excel(name = "车牌号")
    private String plateNum;

    /** 车牌品牌 */
    @Excel(name = "车牌品牌")
    private String vehicleBrand;

    /** 车辆识别码 */
    @Excel(name = "车辆识别码")
    private String vehicleDiscern;

    /** 车主 */
    @Excel(name = "车主")
    private String ownerId;

    /** 生效时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "生效时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date takeTime;

    /** 失效时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "失效时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date loseTime;

    /** 图片 */
    @Excel(name = "图片")
    private String vehicleImg;

    /** 总价 */
    @Excel(name = "总价")
    private String totalPrice;

    /** 组织机构 */
    @Excel(name = "组织机构")
    private String deptId;

    /** 祖父ID */
    @Excel(name = "祖父ID")
    private String ancestors;

    //小区
    private String communityName;

    //车场
    private String parkingName;

    //车位
    private String carportName;

    //车主
    private String ownerName;

    /** 手机号码 */
    @Excel(name = "手机号码")
    private String cellPhoneNumber;

    /** 身份证号 */
    @Excel(name = "身份证号")
    private String idCard;

    /** 性别 */
    @Excel(name = "性别")
    private String sex;

    /** 出生日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "出生日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date birthDate;

    /** 客户头像 */
    @Excel(name = "客户头像")
    private String customHeadImg;

    public String getCustomHeadImg() {
        return customHeadImg;
    }

    public void setCustomHeadImg(String customHeadImg) {
        this.customHeadImg = customHeadImg;
    }

    public String getCellPhoneNumber() {
        return cellPhoneNumber;
    }

    public void setCellPhoneNumber(String cellPhoneNumber) {
        this.cellPhoneNumber = cellPhoneNumber;
    }

    public String getIdCard() {
        return idCard;
    }

    public void setIdCard(String idCard) {
        this.idCard = idCard;
    }

    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }

    public Date getBirthDate() {
        return birthDate;
    }

    public void setBirthDate(Date birthDate) {
        this.birthDate = birthDate;
    }

    public String getCommunityName() {
        return communityName;
    }

    public void setCommunityName(String communityName) {
        this.communityName = communityName;
    }

    public String getParkingName() {
        return parkingName;
    }

    public void setParkingName(String parkingName) {
        this.parkingName = parkingName;
    }

    public String getCarportName() {
        return carportName;
    }

    public void setCarportName(String carportName) {
        this.carportName = carportName;
    }

    public String getOwnerName() {
        return ownerName;
    }

    public void setOwnerName(String ownerName) {
        this.ownerName = ownerName;
    }

    public void setVehicleId(String vehicleId)
    {
        this.vehicleId = vehicleId;
    }

    public String getVehicleId()
    {
        return vehicleId;
    }
    public void setCommunityId(String communityId)
    {
        this.communityId = communityId;
    }

    public String getCommunityId()
    {
        return communityId;
    }
    public void setParkingId(String parkingId)
    {
        this.parkingId = parkingId;
    }

    public String getParkingId()
    {
        return parkingId;
    }
    public void setCarportId(String carportId)
    {
        this.carportId = carportId;
    }

    public String getCarportId()
    {
        return carportId;
    }
    public void setPlateNum(String plateNum)
    {
        this.plateNum = plateNum;
    }

    public String getPlateNum()
    {
        return plateNum;
    }
    public void setVehicleBrand(String vehicleBrand)
    {
        this.vehicleBrand = vehicleBrand;
    }

    public String getVehicleBrand()
    {
        return vehicleBrand;
    }
    public void setVehicleDiscern(String vehicleDiscern)
    {
        this.vehicleDiscern = vehicleDiscern;
    }

    public String getVehicleDiscern()
    {
        return vehicleDiscern;
    }
    public void setOwnerId(String ownerId)
    {
        this.ownerId = ownerId;
    }

    public String getOwnerId()
    {
        return ownerId;
    }
    public void setTakeTime(Date takeTime)
    {
        this.takeTime = takeTime;
    }

    public Date getTakeTime()
    {
        return takeTime;
    }
    public void setLoseTime(Date loseTime)
    {
        this.loseTime = loseTime;
    }

    public Date getLoseTime()
    {
        return loseTime;
    }
    public void setVehicleImg(String vehicleImg)
    {
        this.vehicleImg = vehicleImg;
    }

    public String getVehicleImg()
    {
        return vehicleImg;
    }
    public void setTotalPrice(String totalPrice)
    {
        this.totalPrice = totalPrice;
    }

    public String getTotalPrice()
    {
        return totalPrice;
    }
    public void setDeptId(String deptId)
    {
        this.deptId = deptId;
    }

    public String getDeptId()
    {
        return deptId;
    }
    public void setAncestors(String ancestors)
    {
        this.ancestors = ancestors;
    }

    public String getAncestors()
    {
        return ancestors;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
                .append("vehicleId", getVehicleId())
                .append("communityId", getCommunityId())
                .append("parkingId", getParkingId())
                .append("carportId", getCarportId())
                .append("plateNum", getPlateNum())
                .append("vehicleBrand", getVehicleBrand())
                .append("vehicleDiscern", getVehicleDiscern())
                .append("ownerId", getOwnerId())
                .append("takeTime", getTakeTime())
                .append("loseTime", getLoseTime())
                .append("vehicleImg", getVehicleImg())
                .append("totalPrice", getTotalPrice())
                .append("deptId", getDeptId())
                .append("ancestors", getAncestors())
                .append("createBy", getCreateBy())
                .append("createTime", getCreateTime())
                .append("updateBy", getUpdateBy())
                .append("updateTime", getUpdateTime())
                .toString();
    }
}